package com.gp.learn.ssm.base.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.gp.learn.ssm.base.core.mybaits.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统用户-基础信息
 * @author gp
 * @since 2020-07-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_user")
@ApiModel(value="BaseUser对象", description="系统用户-基础信息")
public class BaseUser extends AbstractEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户ID")
    @TableId(value = "userId", type = IdType.ID_WORKER)
    private Long userId;

    @ApiModelProperty(value = "登陆账号")
    @TableField("userName")
    private String userName;

    @ApiModelProperty(value = "昵称")
    @TableField("nickName")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "用户类型:platform-平台 isp-服务提供商 dev-自研开发者")
    @TableField("userType")
    private String userType;

    @ApiModelProperty(value = "企业ID")
    @TableField("companyId")
    private Long companyId;

    @ApiModelProperty(value = "注册IP")
    @TableField("registerIp")
    private String registerIp;

    @ApiModelProperty(value = "注册时间")
    @TableField("registerTime")
    private Date registerTime;

    @ApiModelProperty(value = "状态:0-禁用 1-启用 2-锁定")
    private Integer status;

    @ApiModelProperty(value = "描述")
    @TableField("userDesc")
    private String userDesc;


}
